import os
from datetime import datetime, timedelta, timezone


class Config(object):
    DEBUG:bool = True
    SECRET_KEY: str = 'div'
    TOKEN_EXPIRE_TIME: timedelta = timedelta(days=1)  # token 过期时间
    # 数据库链接配置
    SQL_DATABASE_URI: str = 'mysql+pymysql://root:admin123@127.0.0.1:3306/research'

    # 登录权限认证URL
    ADMIN_TOKEN_URL: str = "/api/admin/login"
    PATIENT_TOKEN_URL: str = "/api/patient/login"
    DOCTOR_TOKEN_URL: str = "/api/doctor/login"
